package com.zl.entity.base;

import java.time.Instant;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;

/**
 * 时间对象
 * @author zhouliang
 *
 */
@Setter
@Getter
public class BaseTime implements java.io.Serializable {

    /** default Serial Version UID*/
    private static final long serialVersionUID = 1L;
    
    /** 当前时区  */
    private String timeZone ="+08:00";
    
    /** 当前时区 YYYY-MM-DD  */
    private String dateDay;
    
    /** 当前时区 YYYY-MM-DD HH:MM:SS */
    private String dateTime;
    
    /** UTC-0 带时区时间  */
    private Instant utcTime;
    
    /** UTC-0 带时区时间  */
    private String utcTimeStr;
    
    /** 当前时区 YYYY-MM-DD HH:MM:SS */
    private Date date;
    
    @Override
    public String toString(){
        return dateTime.replace(" ", "-").replaceAll(":", "");
    }
}